package controllers

import (
	beego "github.com/beego/beego/v2/server/web"
)

// 老师
type TeacherController struct {
	beego.Controller
}

// Get ...
// @Title 阅卷
// @Description 阅卷
// @Param	xuexiao		path 	string	true		"学校"
// @Param	xueyuan	    path 	string	true		"学院"
// @Param	zhuanye		path 	string	true		"专业"
// @Param	sn		    path 	string	true		"学号"
// @Success 200 {string} get success!
// @Failure 403 id is empty
// @router /Yuejuan [get]
func (c *TeacherController) Yuanjuan() {

}

// Delete ...
// @Title 评分
// @Description 评分
// @Param    xuexiao        path     string    false        "学校"
// @Param    xueyuan        path     string    true        "学院"
// @Param    zhuanye        path     string    true        "专业"
// @Param    name            query     string    true        "姓名"
// @Success 200 {string} delete success!
// @Failure 403 id is empty
// @router /pingfen/:xuexiao/:xueyuan/:zhuanye [get]
func (c *TeacherController) Pingfen() {
	xuexiao := c.Ctx.Input.Param(":xuexiao")
	xueyuan := c.Ctx.Input.Param(":xueyuan")
	zhuanye := c.Ctx.Input.Param(":zhuanye")
	name := c.GetString("name")
	c.Data["json"] = "学校:" + xuexiao + "学院:" + xueyuan + "专业:" + zhuanye + "姓名:" + name

	c.ServeJSON()
}
